﻿using System;
using System.Collections.Generic;

namespace Ec_System.Models.Web
{
    public partial class EvaluationData
    {
        public Int32 ID { get; set; }
        public Int32 Status { get; set; }
        public Int32 ProductID { get; set; }
        public Int32 ServiceStar { get; set; }
        public Int32 QualityStar { get; set; }
        public Int32 ShipStar { get; set; }
        public Int32 TotalScore { get; set; }
        public System.String Indate { get; set; }
        public System.String  ReplayDate { get; set; }
        public System.String ApproveDate { get; set; }
        public String InUser { get; set; }
        public String Contents { get; set; }
        public String ReplayUser { get; set; }
        public String ReplayContent { get; set; }
        public String Appeal { get; set; }
        public String ApproveUser { get; set; }
        public String VendorNumber { get; set; }
    }

    public partial class EvaluationData
    {
        public String OrderId { get; set; }

        public String OrderDetailId { get; set; }

        public string ShopProductTitle { get; set; }

        public string ShopName { get; set; }

        public string ShowServiceStar
        {
            get
            {
                switch(this.ServiceStar)
                {

                    case -2: return "非常差";
                    case -1: return "差";
                    case 0: return "一般";
                    case 1: return "好";
                    case 2: return "非常好";
                    default: return "";
                }
            }
        }

        public string ShowShipStar
        {
            get
            {
                switch(this.ShipStar)
                {
                    case -2: return "非常差";
                    case -1: return "差";
                    case 0: return "一般";
                    case 1: return "好";
                    case 2: return "非常好";
                    default: return "";
                }
            }
        }

        public string ShowQualityStar
        {
            get
            {
                switch(this.QualityStar)
                {
                    case -2: return "非常差";
                    case -1: return "差";
                    case 0: return "一般";
                    case 1: return "好";
                    case 2: return "非常好";
                    default: return "";
                }
            }
        }
    }

    /// <summary>
    /// 仅供分页查询时使用
    /// </summary>
    public class EvaluationRequestData:RequestBase
    {
        public string LoginID { get; set; }
    }

    /// <summary>
    /// /仅供分页查询时使用
    /// </summary>
    public class EvaluationResponseData : ResponseBase<List<EvaluationData>> { }
}
